# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaReport do
  @moduledoc """
  Privacy report.

  ## Attributes

  *   `appBundle` (*type:* `GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaAppBundle.t`, *default:* `nil`) - Information about the analyzed app bundle.
  *   `checks` (*type:* `list(GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaCheck.t)`, *default:* `nil`) - List of checks that were run on the app bundle.
  *   `dataMonitoring` (*type:* `GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring.t`, *default:* `nil`) - Information related to data monitoring.
  *   `name` (*type:* `String.t`, *default:* `nil`) - Resource name of the report.
  *   `resultsUri` (*type:* `String.t`, *default:* `nil`) - A URL to view results.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :appBundle =>
            GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaAppBundle.t() | nil,
          :checks =>
            list(GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaCheck.t()) | nil,
          :dataMonitoring =>
            GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring.t() | nil,
          :name => String.t() | nil,
          :resultsUri => String.t() | nil
        }

  field(:appBundle, as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaAppBundle)
  field(:checks, as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaCheck, type: :list)

  field(:dataMonitoring,
    as: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaDataMonitoring
  )

  field(:name)
  field(:resultsUri)
end

defimpl Poison.Decoder, for: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaReport do
  def decode(value, options) do
    GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaReport.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Checks.V1alpha.Model.GoogleChecksReportV1alphaReport do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
